﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Montezuma
{
    class Areas
    {
        public Texture2D textura;
        public Vector2 posicao;
        public Color color;
        public bool ativo = false;

        public List<Rectangle> retangulos = new List<Rectangle>();
        public List<Rectangle> retanguloMorte = new List<Rectangle>();
        public List<Escada> escadas = new List<Escada>();

        public Rectangle retanguloSaida1;
        public Rectangle retanguloSaida2;
        public Rectangle retanguloSaida3;
        Rectangle retangulo;

        public AreaAtual saida1;
        public AreaAtual saida2;
        public AreaAtual saida3;

        public Vector2 posicaoInicial1;
        public Vector2 posicaoInicial2;
        public Vector2 posicaoInicial3;

        public Areas(Texture2D textura, Vector2 posicao, Color color)
        {
            this.textura = textura;
            this.color = color;
            this.posicao = posicao;

            retangulo = new Rectangle((int)posicao.X, (int)posicao.Y, 900, 600);
        }

        public virtual void Update()
        {

        }

        public virtual void Draw(SpriteBatch spriteBatch)
        {
            ativo = true;

            spriteBatch.Draw(textura, retangulo, new Rectangle(0, 0, textura.Width, textura.Height), color, 0, Vector2.Zero, SpriteEffects.None, 1);
        }
    }
}
